import store from '@/store/index.js';
import constants from '@/utils/constants.js';
var ExportCommand = function() {

};

ExportCommand.prototype.execute = function() {
	var createContext=store.state.formDesigner.getCreateContext();
	var pageCode=createContext.pageCode;
	let a = document.createElement('a')
	a.href = constants.ROOT_URL + "devformdesigner/dataExport?pageCode=" + pageCode+"&X-Token="+window.localStorage.getItem("token");
	a.target = "_blank";
	a.click();
}
export default ExportCommand